package com.lzclass.service.adminservice;

import com.lzclass.pojo.Article;
import com.lzclass.pojo.User;

import java.util.List;

public interface UserService {

    public User  login(String username, String password);

    public String reg(String username, String password,String email);

    public User findMessageByUid(int uid);

    public int changeMessageByUid(int uid,String email,String nickname);

    public List<Article> findArticleByUid(int uid);

    public int delArticleByAid(int aid);

    public  int updateHeadImg(int uid,String url);

    public int addArticleByUid(int uid,String title,String contexts,String type,String img,String time);
}
